import request from '@/utils/request'

// 新增用户-项目中间
export function addUserProject(data) {
  return request({
    url: '/business/user/project',
    method: 'post',
    data: data
  })
}

// 查询用户-项目中间列表
export function listUserProject(query) {
  return request({
    url: '/business/user/project/list',
    method: 'get',
    params: query
  })
}

export function delUserProject(data) {
  return request({
    url: '/business/user/project',
    method: 'delete',
    data: data
  })
}

export function updateUserProjectWarn(projectId, userIds) {
  return request({
    url: `/business/user/project/${projectId}/${userIds}`,
    method: 'post'
  })
}
